{% extends "base/base.html" %}

{% block navbar %}
{{ super() }}
<nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="/">SmartLab</a>
        </div>
        <div id="navbar" class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
            <li><a href="/home">主页</a></li>
            <li><a href="http://it.jssvc.edu.cn/zs/xxjj.html" target="_blank">关于</a></li>
            <li><a href="/contact">联系我们</a></li>
          </ul>
          <ul class="nav navbar-nav navbar-right">
            <li><a href="{{ url_for('admin.dashboard') }}">控制台</a></li>>
            <li><a href="{{ url_for('main.logout') }}">登出</a></li>>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </nav>
{% endblock %}

{% block page_content %}
<div class="container-fluid">
    <div class="row">
      <div class="col-md-2">
        <div class="page-header">
            <h3>查找</h3>

        </div>
        <div class="bs-callout bs-callout-primary">
          <h4>存在节点</h4>
          <p>01, 02, 03, 04, 05</p>
        </div>
        <!-- <form action="{{ url_for('user.temperature') }}" method=post class="form-signin" id="searchform"> -->
        <h4 class="form-signin-heading">搜索节点</h4>
        <label for="inputSearch" class="sr-only">Search</label>
        <input type="text" name="node" id="inputsearch" class="form-control" placeholder="Search" required autofocus><br>
        <button class="btn btn-sm btn-primary" id="click2search" value="Search">Search</button>
        <!-- </form> -->
      </div>
      <div class="col-md-10">
        <div class="page-header">
            <h3>数据统计</h3>

        </div>
        {% for message in get_flashed_messages() %}
          <div class="alert alert-warning">
              <button type="button" class="close" data-dismiss="alert">&times;</button>
              {{ message }}
          </div>
        {% endfor %}
      </div>
  </div>
</div>
<br><br>
<div class="container-fluid">
  <div class="row">
    <div class="col-md-4">
      <div id="fire-pie" style="min-width:400px;height:400px"></div>
    </div>
    <div class="col-md-8">
      <div id="fire-line"></div><br><br>
    </div>
    <div class="col-md-4">
      <div id="human-pie" style="min-width:400px;height:400px"></div>
    </div>
    <div class="col-md-8">
      <div id="human-line"></div><br><br>
    </div>
    <div class="col-md-4">
      <div id="smoke-pie" style="min-width:400px;height:400px"></div>
    </div>
    <div class="col-md-8">
      <div id="smoke-line"></div>
    </div>
  </div>
</div>
{% endblock %}

{% block scripts %}
{{ super() }}
<script type="text/javascript" src="../static/js/cdn/highstock.js"></script>
<script type="text/javascript" src="../static/js/cdn/exporting.js"></script>
<script type="text/javascript">
//获取后台数据
// var data = {{ data|safe }}

</script>
<script type="text/javascript" src="../static/js/get_digital_pie.js"></script>
<script type="text/javascript" src="../static/js/get_digital_line.js"></script>
{% endblock %}